]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/network-agent: Do not query keyring in greeter mode
authorAlessandro Astone <alessandro.astone@canonical.com>
Wed, 19 Feb 2025 11:26:44 +0000 (12:26 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 26 Feb 2025 16:06:05 +0000 (16:06 +0000)
commit65d38939e28153106f09ce5fced8455ee6305e63
tree8a03d7d5ade883cb7793f57e09c0139c05a004fb
parentfb289fa05d8988475b7e14594b71699adfabd934
shell/network-agent: Do not query keyring in greeter mode

When trying to connect to a network from gdm, it doesn't make sense to query
secrets from the gdm user since it's a system user.

Furthermore, gdm runs an isolated dbus-session per gnome-shell instance
(for multi-seat setups). Instead, gnome-keyring-daemon is started by systemd
and so it registers on the _main_ dbus session of the gdm user session.
Then, gnome-shell tries to dbus-activate another gnome-keyring-daemon on its
isolated bus, but gnome-keyring-daemon refuses to start as it sees another
instance already running, exposed at $XDG_RUNTIME_DIR/keyring/control.
After a 25s timeout, gnome-shell aborts the request without ever prompting
for a new password.

Because it is both problematic and pointless to query secrets in this case,
let's avoid it altogether and just prompt the user for the network password.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3646>
js/ui/components/networkAgent.js
src/shell-network-agent.c